<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
		<style>
			body, html {
				background-color: rgba(0,0,0,0);
			}
			div {
				background-color: rgba(0,0,0,.3);
				width: 44px;
				height: 44px;
				margin-top: 22px;
				    border-radius: 25px;
			}
			img {
				height: 26px;
				width: 16px;
				display: inline-block;
				color: #fff;
				display: block;
				margin: 0 auto;
				padding-top: 8px;
			}
		</style>
	</head>
	<body>
		<div >
			<img class=" base_left_item " src="../../image/icon_jiantou.png" onclick="onBackClick()">
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript">
		apiready = function() {
		};
		function onBackClick() {
			//退出时发送结束学习通知
            api.sendEvent({
                name: 'freeCourseRecordNotifi',
                extra: {
            		uid : $api.getStorage('cfnetppuid'),
					jid : $api.getStorage('cfnetppjxid'),
					cid : api.pageParam.cid,
					vid : api.pageParam.vid,
					pid : api.pageParam.pid
                }
            });
            //退出时传回mooc入参
            api.sendEvent({
                name: 'moocCourseRecordNotifi',
                extra: api.pageParam.entryParam
            });
			api.setScreenOrientation({
				orientation : 'portrait_up'
			});
			if (api.pageParam.openType == "skillCourse") {//技能课程
				message = "学习技能课程" + "《" + api.pageParam.cdetailtitle + "》" + "</br>" + api.pageParam.quarter_name + "认证";
				SendBehaviorTrajectoriesNotifi_Authentication('1', '技能课程列表详情页', '130', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title, message);
			} else {
				sendBuriedNotifi('1', '互动资源章节', '153');
			}
			api.closeWin({
				name : 'student_study_freecourse_interactiveNew'
			});
		}

		function sendBuriedNotifi(busionessid, pagetype, pagetypeid) {
			var userinfo = {
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjxid'),
				uname : $api.getStorage('cfnetppusername'),
				cid : api.pageParam.cid,
				pid : api.pageParam.pid,
				vid : api.pageParam.vid
			}
			var data = {
				busionessid : busionessid,
				pagetype : pagetype,
				pagetypeid : pagetypeid,
				sourceurl : api.pageParam.sourceurl,
				sourcetitle : api.pageParam.sourcetitle,
				accesspageurl : api.pageParam.accesspageurl,
				accesspagetitle : api.pageParam.accesspagetitle,
				userinfo : userinfo
			}
			SendBehaviorTrajectoriesNotifi_Study(data);
		}
	</script>
</html>